package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.RelationshipGetTask.RelationshipGetRequest;
import com.smiier.skin.net.RelationshipGetTask.RelationshipGetResponse;
import com.smiier.skin.net.entity.UserWrapper;
import com.smiier.skin.util.GlobalSettings;

public class RelationshipGetTask extends
		NetTask<RelationshipGetRequest, RelationshipGetResponse> {
	public static class RelationshipGetRequest extends ORequest {
		public String token;
		public ArrayList<Long> rsuids;
		public String appname = Constant.APP_NAME;
	}

	public static class RelationshipGetResponse extends OResponse {
		public RelationshipGetRes Res;
	}

	public static class RelationshipGetRes implements INoProguard {
		public ArrayList<UserWrapper> Users;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=RelationShip.Get";
		mRequestMethod = METHOD_GET;
	}
}
